import java.util.*;

public class BetterSet implements WordSet{
	
	private RedBlackTree tree;
	
	public BetterSet()
	{
		tree = new RedBlackTree(new Word());
	}
	
	public Word get(Word word)
	{
		Word index;
		index = (Word) tree.find(word);
		return index;
	}
	
	public void add(Word wordObject)
	{
		tree.insert(wordObject);
	}

}
